{{include template('public/header','admin')}}
<body>
    <div id="page-wrapper">
        <!-- /.row -->
        <div class="row">
            <div class="col-lg-12">
                <form method="post" action="/admin/model/batchremove" class="form-inline" role="form">
                    <table id='ModelList' class="table table-condensed table-hover table-striped tablesorter table-fixed table-selectable">
                        <thead>
                            <tr>
                                <th>{{L('model_modelid')}}</th>
                                <th>{{L('model_name')}}</th>
                                <th>{{L('model_tablename')}}</th>
                                <th>{{L('model_description')}}</th>
                                <th>{{L('model_issystem')}}</th>
                                <th>{{L('model_disabled')}}</th>
                                <th>{{L('edit')}}</th>
                            </tr>
                        </thead>
                        <tbody>
                            {{foreach $items as $item}}
                            <tr>
                                <td >{{$item.modelid}}</td>
                                <td >{{$item.name}}</td>
                                <td >{{$item.tablename}}</td>
                                <td >{{$item.description}}</td>
                                <td >
                                    {{if $item.issystem eq '1'}}系统{{else}} 自定义 {{/if}}
                                </td>
                                <td >{{update_status('model','model','modelid',$item.modelid,'disabled',$item.disabled)}}</td>
                                <td>
                                    <a href="/admin/model_field/?modelid={{$item.modelid}}"class="btn btn-primary btn-xs" style="text-decoration:none">字段管理</a>
                                    <a href="javascript:;" onclick="layer_open('编辑表单', '/diyform/diyform/manage/?modelid={{$item.modelid}}', '800', '450')"  class="btn btn-warning btn-xs" style="text-decoration:none">修改</a>
                                    <a href="javascript:;" onclick="layer_del('/diyform/diyform/delete/?modelid={{$item.modelid}}')"  class="btn btn-danger btn-xs" style="text-decoration:none">删除</a>
                                </td>
                            </tr>
                            {{/foreach}}
                        </tbody>

                    </table>
                </form>
            </div>
        </div>
    </div>
</body>
</html>
